package aos.client;

import javax.swing.JFrame;

import org.apache.log4j.Logger;

import thinlet.RootPane;
import aos.client.gui.ControlPane;
import aos.server.robot.LocalRobotControllerProxy;

/**
 * This class is the main class to run the local client. This local client allows to control the robot without
 * using Skype. This local client mode may only be used on a computer attached to the robot.
 * 
 * @author Yannic
 *
 */
public class LocalClient {

	static Logger logger = Logger.getLogger(Client.class);
	
	public LocalClient() {
		LocalRobotControllerProxy localRobotControllerProxy = new LocalRobotControllerProxy();
		JFrame frame = new RootPane(new ControlPane(localRobotControllerProxy)).showFrame(263, 155);
		frame.setTitle("AoS - Arduino over Skype");
		logger.info("Client initialized.");
	}
	

	public static void main(String[] args) {
		LocalClient client = new LocalClient();
	}
}
